/*********************\
* Author:Dzlua
* QQ:505544956
* Time:2017/04/16
\**********************/
#include "LuaRing.h"

#define CObjPtr ((CRingUI*)m_cobj)

namespace DuiLib {

int LuaRing::SetBkImage(LuaState *L)
{
    LuaStack args(L);
    SDTString str = LuaHelperNS::GetTString(args[2]);
    CObjPtr->SetBkImage(str.c_str());
    return 0;
}

SDLUA_BEGIN_REGISTER(LuaRing, Ring, Label)
    SDLUA_REGISTER_FUN_LUA(LuaRing, SetBkImage, SetBkImage)
SDLUA_END_REGISTER

SDLUA_BEGIN_UNREGISTER(LuaRing, Ring)
SDLUA_END_UNREGISTER(Ring)

}

#undef CObjPtr